Skip to content

Commit

Permalink
update github actions versions
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Fitzgerald <[email protected]>
  • Loading branch information
joefitzgerald committed Jan 22, 2023
1 parent 11d6003 commit 059e22f
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/build-and-publish-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ jobs:

steps:
- name: Check out the repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Docker buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Generate container image metadata
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/${{github.repository_owner}}/educates-${{matrix.image}}
Expand All @@ -45,14 +45,14 @@ jobs:
type=sha
- name: Login to GitHub container registry
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
registry: ghcr.io

- name: Build and push ${{matrix.image}} image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: ${{matrix.image}}
tags: ${{steps.meta.outputs.tags}}
Expand All @@ -64,13 +64,13 @@ jobs:

steps:
- name: Check out the repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Docker buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Restore Docker cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{runner.os}}-buildx-base-environment-${{github.sha}}
Expand All @@ -79,7 +79,7 @@ jobs:
- name: Generate container image metadata
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/${{github.repository_owner}}/educates-base-environment
Expand All @@ -90,14 +90,14 @@ jobs:
type=sha
- name: Login to GitHub container registry
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
registry: ghcr.io

- name: Build and push base-environment image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: workshop-images/base-environment
tags: ${{steps.meta.outputs.tags}}
Expand Down Expand Up @@ -128,18 +128,18 @@ jobs:

steps:
- name: Check out the repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Calculate variables
shell: bash
run: |
echo "REPOSITORY_SHA_TAG=sha-${GITHUB_SHA::7}" >>${GITHUB_ENV}
- name: Set up Docker buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Restore Docker cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{runner.os}}-buildx-${{matrix.image}}-${{github.sha}}
Expand All @@ -148,7 +148,7 @@ jobs:
- name: Generate container image metadata
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/${{github.repository_owner}}/educates-${{matrix.image}}
Expand All @@ -159,14 +159,14 @@ jobs:
type=sha
- name: Login to GitHub container registry
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
registry: ghcr.io

- name: Build and push ${{matrix.image}} image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: workshop-images/${{matrix.image}}
build-args: |
Expand All @@ -193,7 +193,7 @@ jobs:

steps:
- name: Check out the repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install Carvel tools
shell: bash
Expand Down

0 comments on commit 059e22f

Please sign in to comment.