Skip to content

Commit

Permalink
chore: test docker push
Browse files Browse the repository at this point in the history
(cherry picked from commit 3495d09de4d389c5c9f0730e85c5f9c50cfe0b42)
  • Loading branch information
zemyblue committed Apr 19, 2023
1 parent 4845096 commit 0b09f24
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ on:
branches:
- main
- rc*/*
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+" # Push events to matching v*, i.e. v1.0, v20.15.10
- "v[0-9]+.[0-9]+.[0-9]+-rc*" # Push events to matching v*, i.e. v1.0-rc1, v20.15.10-rc5
# push:
# tags:
# - "v[0-9]+.[0-9]+.[0-9]+" # Push events to matching v*, i.e. v1.0, v20.15.10
# - "v[0-9]+.[0-9]+.[0-9]+-rc*" # Push events to matching v*, i.e. v1.0-rc1, v20.15.10-rc5
env:
registry: docker.io
repository: line/lbm-simapp
Expand All @@ -20,7 +20,7 @@ jobs:
fetch-depth: 0
- name: login to the registry
uses: docker/login-action@v2
if: github.event_name != 'pull_request'
# if: github.event_name != 'pull_request'
with:
registry: ${{env.registry}}
username: ${{secrets.DOCKERHUB_USERNAME}}
Expand All @@ -35,7 +35,7 @@ jobs:
- name: docker build
uses: docker/build-push-action@v4
with:
push: ${{github.event_name != 'pull_request'}}
# push: ${{github.event_name != 'pull_request'}}
build-args: ARCH=x86_64
tags: ${{steps.meta.outputs.tags}}
labels: ${{steps.meta.outputs.labels}}
Expand Down

0 comments on commit 0b09f24

Please sign in to comment.