Skip to content

Commit e249f8e

Browse files
authored
Add docker push based ongit tag (#70)
* push to github based on github tag * push to github based on github tag * fix actions * fix actions
1 parent e6faf8f commit e249f8e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/docker-hub-image.yml

+4
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ jobs:
5353
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
5454
- name: Extract metadata (tags, labels) for Docker
5555
if: github.ref == 'refs/heads/main'
56+
continue-on-error: true
5657
id: meta
5758
uses: docker/metadata-action@v5
5859
with:
@@ -61,6 +62,7 @@ jobs:
6162
type=raw,value=latest,enable={{is_default_branch}}
6263
- name: Extract metadata (tags, labels) for Docker
6364
if: github.ref != 'refs/heads/main' || github.event_name != 'pull_request'
65+
continue-on-error: true
6466
id: meta-tag
6567
uses: docker/metadata-action@v5
6668
with:
@@ -71,6 +73,7 @@ jobs:
7173
type=semver,pattern={{major}}
7274
- name: Build and push
7375
uses: docker/build-push-action@v5
76+
continue-on-error: true
7477
with:
7578
context: .
7679
file: ${{ matrix.dockerfile }}
@@ -79,6 +82,7 @@ jobs:
7982
labels: ${{ steps.meta.outputs.labels }}
8083
- name: Build and push tags
8184
uses: docker/build-push-action@v5
85+
continue-on-error: true
8286
with:
8387
context: .
8488
file: ${{ matrix.dockerfile }}

0 commit comments

Comments
 (0)