Skip to content

Commit

Permalink
ci: Update actions
Browse files Browse the repository at this point in the history
This commit updates the actions used by the CI workflow to the latest
version.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
  • Loading branch information
stephanosio committed Nov 23, 2022
1 parent ec029b0 commit 9622377
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,26 +43,26 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Generate local metadata for CI image
id: meta_ci
uses: docker/metadata-action@v3
uses: docker/metadata-action@v4
with:
images: |
localhost:5000/zephyrproject-rtos/ci
- name: Generate local metadata for Developer image
id: meta_developer
uses: docker/metadata-action@v3
uses: docker/metadata-action@v4
with:
images: |
localhost:5000/zephyrproject-rtos/zephyr-build
- name: Generate push metadata for CI image
if: ${{ github.event_name != 'pull_request' }}
id: meta_ci_push
uses: docker/metadata-action@v3
uses: docker/metadata-action@v4
with:
images: |
docker.io/zephyrprojectrtos/ci
Expand All @@ -77,7 +77,7 @@ jobs:
- name: Generate push metadata for Developer image
if: ${{ github.event_name != 'pull_request' }}
id: meta_developer_push
uses: docker/metadata-action@v3
uses: docker/metadata-action@v4
with:
images: |
docker.io/zephyrprojectrtos/zephyr-build
Expand All @@ -90,12 +90,12 @@ jobs:
type=ref,event=tag
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2
with:
driver-opts: network=host

- name: Build CI docker image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: .
file: Dockerfile
Expand All @@ -105,7 +105,7 @@ jobs:
labels: ${{ steps.meta_ci.outputs.labels }}

- name: Build Developer docker image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: .
file: Dockerfile.user
Expand All @@ -118,15 +118,15 @@ jobs:
- name: Login to DockerHub
if: ${{ github.event_name != 'pull_request' }}
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: docker.io
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to GitHub Container Registry
if: ${{ github.event_name != 'pull_request' }}
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand Down Expand Up @@ -154,22 +154,22 @@ jobs:

steps:
- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: docker.io
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Generate push metadata for CI image
id: meta_ci_push
uses: docker/metadata-action@v3
uses: docker/metadata-action@v4
with:
images: |
docker.io/zephyrprojectrtos/ci
Expand All @@ -183,7 +183,7 @@ jobs:
- name: Generate push metadata for Developer image
id: meta_developer_push
uses: docker/metadata-action@v3
uses: docker/metadata-action@v4
with:
images: |
docker.io/zephyrprojectrtos/zephyr-build
Expand Down

0 comments on commit 9622377

Please sign in to comment.