Skip to content

Commit

Permalink
Update GH actions dependencies and build egress container.
Browse files Browse the repository at this point in the history
  • Loading branch information
GUI committed Sep 26, 2023
1 parent 768367d commit 5d52284
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 35 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,39 +16,39 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2.4.1
uses: docker/setup-buildx-action@v3
with:
driver-opts: network=host

- name: Log in to the Container registry
uses: docker/login-action@v2.1.0
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: dev-env container metadata
id: meta
uses: docker/metadata-action@v4.3.0
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
flavor: |
suffix=-dev-env
- name: build-cache container metadata
id: build_cache_meta
uses: docker/metadata-action@v4.3.0
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
flavor: |
suffix=-build-cache-test
- name: Build and push
id: docker_build
uses: docker/build-push-action@v4.0.0
uses: docker/build-push-action@v5
with:
target: test
pull: true
Expand All @@ -70,7 +70,7 @@ jobs:
# arguments, but that isn't currently supported:
# https://github.com/moby/buildkit/issues/2818
- name: Push recent test cache
uses: docker/build-push-action@v4.0.0
uses: docker/build-push-action@v5
with:
target: test
tags: ${{ steps.meta.outputs.tags }}
Expand All @@ -83,30 +83,30 @@ jobs:
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2.4.1
uses: docker/setup-buildx-action@v3
with:
driver-opts: network=host

- name: Log in to the Container registry
uses: docker/login-action@v2.1.0
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: build-cache container metadata
id: build_cache_meta
uses: docker/metadata-action@v4.3.0
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
flavor: |
suffix=-build-cache-test
- name: Push recent runtime cache
uses: docker/build-push-action@v4.0.0
uses: docker/build-push-action@v5
with:
target: runtime
tags: ${{ steps.meta.outputs.tags }}
Expand All @@ -119,11 +119,11 @@ jobs:
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: dev-env container metadata
id: meta
uses: docker/metadata-action@v4.3.0
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
flavor: |
Expand Down Expand Up @@ -173,11 +173,11 @@ jobs:
ci_node_total: [6]
ci_node_index: [0, 1, 2, 3, 4, 5]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: dev-env container metadata
id: meta
uses: docker/metadata-action@v4.3.0
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
flavor: |
Expand Down Expand Up @@ -215,7 +215,7 @@ jobs:

- name: Dump docker logs
if: ${{ always() }}
uses: jwalton/gh-docker-logs@v2.2.1
uses: jwalton/gh-docker-logs@v2
with:
dest: test/tmp/artifacts/docker-logs

Expand Down Expand Up @@ -255,11 +255,11 @@ jobs:
--health-timeout 90s
--health-retries 5
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: dev-env container metadata
id: meta
uses: docker/metadata-action@v4.3.0
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
flavor: |
Expand Down Expand Up @@ -294,7 +294,7 @@ jobs:

- name: Dump docker logs
if: ${{ always() }}
uses: jwalton/gh-docker-logs@v2.2.1
uses: jwalton/gh-docker-logs@v2
with:
dest: test/tmp/artifacts/docker-logs

Expand Down Expand Up @@ -334,11 +334,11 @@ jobs:
--health-timeout 90s
--health-retries 5
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: dev-env container metadata
id: meta
uses: docker/metadata-action@v4.3.0
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
flavor: |
Expand Down Expand Up @@ -374,7 +374,7 @@ jobs:

- name: Dump docker logs
if: ${{ always() }}
uses: jwalton/gh-docker-logs@v2.2.1
uses: jwalton/gh-docker-logs@v2
with:
dest: test/tmp/artifacts/docker-logs

Expand Down Expand Up @@ -405,7 +405,7 @@ jobs:
path: ./artifacts

- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2.3.0
uses: EnricoMi/publish-unit-test-result-action@v2
with:
junit_files: "artifacts/*/reports/**/*.xml"
comment_mode: off
40 changes: 29 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2.4.1
uses: docker/setup-buildx-action@v3
with:
driver-opts: network=host

Expand All @@ -31,28 +31,46 @@ jobs:
fi
- name: Log in to the Container registry
uses: docker/login-action@v2.1.0
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Container metadata
id: meta
uses: docker/metadata-action@v4.3.0
- name: Runtime container metadata
id: runtime_meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=semver,pattern={{version}}
- name: Build and push
id: docker_build
uses: docker/[email protected]
- name: Runtime egress container metadata
id: runtime_egress_meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=semver,prefix=egress-,pattern={{version}}
- name: Build and push runtime
uses: docker/build-push-action@v5
with:
target: runtime
pull: true
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.runtime_meta.outputs.tags }}
labels: ${{ steps.runtime_meta.outputs.labels }}
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:build-cache-runtime-recent,mode=max
provenance: false

- name: Build and push runtime-egress
uses: docker/build-push-action@v5
with:
target: runtime-egress
pull: true
push: true
tags: ${{ steps.runtime_egress_meta.outputs.tags }}
labels: ${{ steps.runtime_egress_meta.outputs.labels }}
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:build-cache-runtime-recent,mode=max
provenance: false

0 comments on commit 5d52284

Please sign in to comment.