From 36d575c3b03eb5e7372dc2280c2bbafa49ae7735 Mon Sep 17 00:00:00 2001 From: pankalog Date: Sat, 3 Feb 2024 15:05:02 +0100 Subject: [PATCH] CICD --- .github/workflows/main.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 26dbcab..dffed93 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,16 +13,18 @@ jobs: runs-on: ubuntu-latest steps: - - name: Dump GitHub Actions context - shell: bash - run: echo "$GITHUB_CONTEXT" + + + - name: Check out the code + uses: actions/checkout@v2 - name: Extract commit SHA id: sha run: echo "SHORT_SHA=$(git rev-parse --short=7 ${{ github.sha }})" >> $GITHUB_ENV - - - name: Check out the code - uses: actions/checkout@v2 + + - name: Dump GitHub Actions context + shell: bash + run: echo "$GITHUB_CONTEXT" - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 @@ -32,7 +34,6 @@ jobs: with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_ACCESSTOKEN }} - - name: Build and push uses: docker/build-push-action@v2