From e6907e3a2a3c68d1d28f19d5b36138ac8127cb6f Mon Sep 17 00:00:00 2001 From: thursday Date: Wed, 17 Nov 2021 18:22:51 -0500 Subject: Update build-and-publish.yml --- .github/workflows/build-and-publish.yml | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to '.github/workflows/build-and-publish.yml') diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index 2d3a49d..bd24f9c 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -2,19 +2,8 @@ name: Build and Publish Docker Image on: push: - branches: - - 'main' - paths-ignore: - - '**.md' - - '**.png' tags: - 'v*.*.*' - pull_request: - branches: - - 'main' - paths-ignore: - - '**.md' - - '**.png' release: types: [published] workflow_dispatch: @@ -47,14 +36,12 @@ jobs: uses: docker/setup-buildx-action@v1 - name: Login to DockerHub - if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/main' }} uses: docker/login-action@v1 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Login to GitHub Container Registry - if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/main' }} uses: docker/login-action@v1 with: registry: ghcr.io @@ -68,7 +55,7 @@ jobs: context: . file: ./Dockerfile platforms: linux/amd64,linux/arm64 - push: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/main' }} + push: true tags: ${{ steps.meta.outputs.tags }}, getferdi/ferdi-server:latest labels: ${{ steps.meta.outputs.labels }} -- cgit v1.2.3-70-g09d2