From fa8a3c7e9480f16be864597a872377531e57f5ae Mon Sep 17 00:00:00 2001 From: Nathan Higley Date: Sat, 15 Jan 2022 17:50:57 -0500 Subject: [PATCH] Clean up actions definition --- .github/workflows/docker-publish.yml | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index e0d5e54..8b4d4b8 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -8,8 +8,6 @@ name: Docker on: push: branches: [ main ] - # Publish semver tags as releases. - tags: [ 'v*.*.*' ] pull_request: branches: [ main ] @@ -27,19 +25,14 @@ jobs: permissions: contents: read packages: write - # This is used to complete the identity challenge - # with sigstore/fulcio when running outside of PRs. - id-token: write steps: - name: Checkout repository uses: actions/checkout@v2 - - name: Set up QEMU uses: docker/setup-qemu-action@v1 - # Workaround: https://github.com/docker/build-push-action/issues/461 - name: Setup Docker buildx uses: docker/setup-buildx-action@v1 @@ -53,14 +46,6 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - # Extract metadata (tags, labels) for Docker - # https://github.com/docker/metadata-action - - name: Extract Docker metadata - id: meta - uses: docker/metadata-action@v1 - with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - # Build and push Docker image with Buildx (don't push on PR) # https://github.com/docker/build-push-action - name: Build and push Docker image @@ -69,6 +54,5 @@ jobs: with: context: . push: ${{ github.event_name != 'pull_request' }} - tags: ${{ steps.meta.outputs.tags }} + tags: ghcr.io/astr0n8t/tasmota-power-exporter:latest platforms: linux/arm/v7,linux/arm64/v8,linux/amd64 - labels: ${{ steps.meta.outputs.labels }}