Skip to content

Commit

Permalink
Push to dockerhub on version tag (#83)
Browse files Browse the repository at this point in the history
Automate the longest leg of our umbrel release process
  • Loading branch information
DanGould committed Nov 20, 2022
1 parent 6e23657 commit b8303b2
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
on:
push:
tags:
- 'v*.*.*'

env:
CARGO_TERM_COLOR: always

jobs:
buildx:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Log in to Docker Hub
uses: docker/#-action@v2
with:
username: chaincase
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Dockerize
run: docker buildx build --platform linux/arm64,linux/amd64 --tag chaincase/nolooking:${{ env.RELEASE_VERSION }} --output type=registry .

0 comments on commit b8303b2

Please # to comment.