From b07ef1ff89c5596adeec2c4cf2349294a95c3bff Mon Sep 17 00:00:00 2001 From: Ramy Shurafa Date: Sat, 16 Dec 2023 18:14:02 +0300 Subject: [PATCH] test github actions 2 --- .github/workflows/docker-image.yml | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 8c5cfc3..2c6a422 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -7,26 +7,24 @@ on: workflow_dispatch: jobs: - push-store-image: + build: runs-on: ubuntu-latest - defaults: - run: - working-directory: "./Store" steps: - - name: "Checkout GitHub Action" - uses: actions/checkout@main + - name: Checkout + uses: actions/checkout@v2 - - name: "Login to GitHub Container Registry" + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + + - name: Login to GitHub Container Registry uses: docker/login-action@v1 with: registry: ghcr.io - username: ${{github.actor}} - password: ${{secrets.GITHUB_TOKEN}} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - - name: "Build and Push Docker Image" + - name: Build and push uses: docker/build-push-action@v2 with: - context: . - file: ./Store/Dockerfile push: true - tags: ghcr.io/${{github.repository}}/store:latest + tags: ghcr.io/${{ github.repository }}:latest