Skip to content

Commit

Permalink
Update actions in our workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
benbz committed Mar 27, 2024
1 parent 8c94e56 commit 55d8f23
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/docker-publish-individual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,34 +33,34 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Checkout other repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: ${{ inputs.repository }}
ref: ${{ inputs.ref }}
path: ${{ inputs.folder }}
if: ${{ inputs.repository != '' }}

- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.github-token }}

- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY_BASE_PATH }}/${{ inputs.folder }}
# Turn off auto-latest, as we want to exclude openshift tags from that
flavor: |
latest=false
- name: Build and push Docker image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: "${{ inputs.folder }}"
push: ${{ github.event_name != 'pull_request' }}
Expand Down

0 comments on commit 55d8f23

Please sign in to comment.