Skip to content

Commit

Permalink
Releases
Browse files Browse the repository at this point in the history
  • Loading branch information
oittaa committed Feb 12, 2021
1 parent 339c577 commit f5c4693
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI

on:
push:
branches:
- main
release:
types: [published]
jobs:
build-n-publish:
if: startsWith(github.ref, 'refs/tags')
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/publist-to-dockerhub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish to Docker Hub

on:
release:
types: [published]

jobs:
publish:
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.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: |
oittaa/gcp-storage-emulator:latest
oittaa/gcp-storage-emulator:${{ github.event.release.tag_name }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

0 comments on commit f5c4693

Please sign in to comment.