From 2cd7bbcbae0ce81248bf557a51af8ac4ec8b6ec4 Mon Sep 17 00:00:00 2001 From: Abner Rizzi Date: Thu, 10 Aug 2023 09:17:10 -0300 Subject: [PATCH] test build and push --- .github/workflows/build-push-ghcr.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-push-ghcr.yml b/.github/workflows/build-push-ghcr.yml index 8e0a943..3edf825 100644 --- a/.github/workflows/build-push-ghcr.yml +++ b/.github/workflows/build-push-ghcr.yml @@ -1,6 +1,3 @@ - - - name: Build and Push docker on: @@ -21,7 +18,7 @@ env: IMAGE_NAME: ${{ github.repository }} jobs: - push-docker-image: + deploy-docker-hello-world: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -45,12 +42,10 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v3 with: context: . file: Dockerfile.base - #push: ${{ github.ref_type == 'tag' || github.ref_name == 'main' || startsWith(github.ref_name, 'feat-')}} - push: ${{ github.ref_type == 'tag' || github.ref_name == 'main' || startsWith(github.ref_name, 'feat-') || startsWith(github.ref_name, 'gh-action') }} - #tags: ${{ steps.meta.outputs.tags }} - tags: ${{ env.REGISTRY}}/${{ env.IMAGE_NAME }} - #labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file + push: ${{ github.ref_type == 'tag' || github.ref_name == 'main' || startsWith(github.ref_name, 'feat-')}} + tags: ${steps.meta.outputs.tags} + labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file