Skip to content

Commit 93bb133

Browse files
committed
2 parents a201c11 + aa3dbbd commit 93bb133

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.github/workflows/image-release.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
name: image-release
22

33
on:
4-
release:
5-
types: [ published ]
4+
push:
5+
tags: [ '*.*.*' ]
6+
7+
env:
8+
# Use docker.io for Docker Hub if empty
9+
REGISTRY: docker.io
10+
# github.repository as <account>/<repo>
11+
IMAGE_NAME: ${{ github.repository }}
612

713
concurrency:
814
group: ${{ github.workflow }}-${{ github.ref }}
@@ -26,9 +32,6 @@ jobs:
2632
- name: Set up Docker Buildx
2733
uses: docker/setup-buildx-action@v2
2834

29-
- name: Get release version
30-
run: echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
31-
3235
# Login against a Docker registry except on PR
3336
# https://github.com/docker/login-action
3437
- name: Log into dockerhub
@@ -55,7 +58,7 @@ jobs:
5558
context: ./
5659
platforms: linux/amd64, linux/arm/v6, linux/arm/v7, linux/arm64/v8
5760
push: ${{ github.event_name != 'pull_request' }}
58-
tags: ${{ env.TAG }}
61+
tags: ${{ steps.meta.outputs.tags }}
5962
labels: ${{ steps.meta.outputs.labels }}
6063

6164
singularity:

.github/workflows/image.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ on:
1010
- cron: '19 17 * * *'
1111
push:
1212
branches: [ main ]
13-
# Publish semver tags as releases.
14-
tags: [ '*.*.*' ]
1513
pull_request:
1614
branches: [ main ]
1715

0 commit comments

Comments
 (0)