Skip to content

Commit

Permalink
do a release
Browse files Browse the repository at this point in the history
  • Loading branch information
dazz committed Jan 10, 2024
1 parent 260b2be commit 6f4df3c
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,31 @@
name: release

on:
create
workflow_dispatch:
push:
branches:
- 'main'
tags:
- 'v*'
pull_request:
branches:
- 'main'

jobs:
docker:
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: hakindazz/s6-cli
tags: |
# set latest tag for default branch
type=raw,value=latest,enable={{is_default_branch}}
-
name: Login to Docker Hub
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
Expand All @@ -24,5 +34,6 @@ jobs:
name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: hakindazz/s6-cli:latest
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 6f4df3c

Please sign in to comment.