Skip to content
This repository has been archived by the owner on Dec 21, 2022. It is now read-only.

Commit

Permalink
build: add back docker push
Browse files Browse the repository at this point in the history
  • Loading branch information
tshauck committed Jul 18, 2022
1 parent 1337ecb commit d6ee1dc
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Docker Build and Push

on:
push:
tags:
- "v*"
jobs:
multi:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Docker Registry
uses: docker/login-action@v1
with:
username: thauck
password: ${{ secrets.DOCKERHUB_KEY }}
- name: Set env
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
platforms: linux/386,linux/amd64,linux/arm64
push: true
tags: |
thauck/brrrr:latest
thauck/brrrr:${{ env.VERSION }}

0 comments on commit d6ee1dc

Please sign in to comment.