Skip to content

Commit

Permalink
bump gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusfm committed Sep 21, 2023
1 parent f44769a commit fe99bb3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 18 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,40 +24,34 @@ jobs:
image: worker
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: setup qemu
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

- name: setup docker buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

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

- name: metadata
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/${{ matrix.image }}
tags: |
type=schedule
type=ref,event=branch
type=ref,event=tag
type=ref,event=pr,prefix=pr-
type=sha,prefix=,format=long

- name: create dockerfile.cross
run: |
sed -e '1 s/\(^FROM\)/FROM --platform=\$\{BUILDPLATFORM\}/; t' -e ' 1,// s//FROM --platform=\$\{BUILDPLATFORM\}/' ${{ matrix.dockerfile }} > ${{ matrix.dockerfile }}.cross
cat ${{ matrix.dockerfile }}.cross
- name: build and push
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
platforms: linux/arm64,linux/amd64,linux/s390x,linux/ppc64le
file: ${{ matrix.dockerfile }}.cross
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: setup python
uses: actions/setup-python@v4
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
needs: [docker]
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -40,7 +40,7 @@ jobs:
cache: true

- name: release
uses: goreleaser/goreleaser-action@v4
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
Expand All @@ -53,12 +53,12 @@ jobs:
needs: [goreleaser]
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: main

- name: checkout charts
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: undistro/helm-charts
ref: main
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: setup go
uses: actions/setup-go@v4
Expand Down

0 comments on commit fe99bb3

Please sign in to comment.