Skip to content

Commit

Permalink
Update docker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wr8fdy committed Oct 25, 2020
1 parent d209037 commit 1dd3a52
Showing 1 changed file with 12 additions and 26 deletions.
38 changes: 12 additions & 26 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,18 @@
name: docker

name: Publish Docker image
on:
release:
types: [released]

types: [published]
jobs:
main:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
uses: docker/login-action@v1
- name: Check out the repo
uses: actions/checkout@v2
- name: Push to Docker Hub
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: vovad/sqs-exporter:latest
-
name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: vovad/sqs-exporter
tag_with_ref: true

0 comments on commit 1dd3a52

Please sign in to comment.