Skip to content

Commit

Permalink
GitHub Action to auto-build container images (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemSokolov authored Aug 5, 2021
1 parent 7cc8cfa commit 659076e
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/dockerhub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: dockerhub

on:
release:
types: [published]

jobs:
docker:
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
with:
username: ${{ secrets.MCMICRO_USERNAME }}
password: ${{ secrets.MCMICRO_TOKEN }}
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: labsyspharm/scimap:${{ github.event.release.tag_name }}
-
name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

0 comments on commit 659076e

Please sign in to comment.