workflow cleanup
Signed-off-by: Omri Shiv <327609+OmriShiv@users.noreply.github.com>
This commit is contained in:
parent
b524d9d078
commit
57df409a3f
1 changed files with 3 additions and 6 deletions
9
.github/workflows/build-and-push.yaml
vendored
9
.github/workflows/build-and-push.yaml
vendored
|
@ -1,10 +1,8 @@
|
|||
#
|
||||
name: Create and publish a Docker image
|
||||
|
||||
# Configures this workflow to run every time a change is pushed to the branch called `release`.
|
||||
on:
|
||||
push:
|
||||
branches: ['main']
|
||||
# Configures this workflow to run every time a change is pushed.
|
||||
on: push
|
||||
|
||||
# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
|
||||
env:
|
||||
|
@ -24,7 +22,7 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
# Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
|
||||
# Uses the `docker/login-action` action to log in to the Container registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
|
||||
- name: Log in to the Container registry
|
||||
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
|
||||
with:
|
||||
|
@ -57,4 +55,3 @@ jobs:
|
|||
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
|
||||
subject-digest: ${{ steps.push.outputs.digest }}
|
||||
push-to-registry: true
|
||||
|
||||
|
|
Loading…
Reference in a new issue