Skip to content

Commit

Permalink
ci: update workflow steps to latest (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahanoff authored Sep 13, 2023
1 parent d7273ac commit a59510b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

-
name: Docker meta
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v5.0.0
with:
images: |
sameersbn/redmine
Expand All @@ -37,33 +37,33 @@ jobs:
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3.0.0

- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
uses: docker/login-action@v3.0.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to Github Packages
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
uses: docker/login-action@v3.0.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Login to Quay.io
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
uses: docker/login-action@v3.0.0
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_TOKEN }}

- name: Build image and push to container registries
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5.0.0
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
Expand Down

0 comments on commit a59510b

Please sign in to comment.