We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 397d38a commit df46f7dCopy full SHA for df46f7d
.github/workflows/docker-image.yml
@@ -3,8 +3,8 @@ name: Docker Image CI
3
on:
4
push:
5
branches: [ "main" ]
6
- pull_request:
7
- branches: [ "main" ]
+ tags:
+ - '*'
8
9
jobs:
10
build:
@@ -25,4 +25,13 @@ jobs:
25
with:
26
context: .
27
push: true
28
- tags: ghcr.io/${{ github.repository }}/minio-backup:latest
+ tags: ghcr.io/${{ github.repository }}/${{ github.event.repository.name }}:latest
29
+
30
+ - name: Build and push Docker image with the tag name
31
+ if: startsWith(github.ref, 'refs/tags/')
32
+ uses: docker/build-push-action@v5
33
+ with:
34
+ context: .
35
+ push: true
36
+ tags: |
37
+ ghcr.io/${{ github.repository }}:${{ github.event.repository.name }}:${{ github.ref_name }}
0 commit comments