Skip to content

Commit

Permalink
PLTCLD-351: gha: checkout, docker updates (#26)
Browse files Browse the repository at this point in the history
- checkout v4
- docker/setup-qemu-action: v2 -> v3
- docker/setup-buildx-action: v2 -> v3
- docker/login-action: v2 -> v3
- docker/metadata-action: v4 -> v5
- docker/build-push-action: v4 -> v5
  • Loading branch information
IvoBCD authored Nov 14, 2024
1 parent a15c715 commit a6e32f7
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
image: ghcr.io/bcdevices/scm-go-usb-arm:v1.21.1-jammy-2
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Unit Testing
run: |
make test
Expand All @@ -24,7 +24,7 @@ jobs:
image: ghcr.io/bcdevices/scm-go-usb-arm:v1.21.1-jammy-2
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Build linux-amd64
run: |
TARGET_ARCH="linux-amd64" make all
Expand All @@ -35,7 +35,7 @@ jobs:
image: ghcr.io/bcdevices/scm-go-usb-arm:v1.21.1-jammy-2
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Build linux-arm64
run: |
TARGET_ARCH="linux-arm64" make all
2 changes: 1 addition & 1 deletion .github/workflows/cleanup-gha-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Cleanup
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/hadolint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Run hadolint
uses: hadolint/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Build
uses: ./.github/actions/build
- name: Upload Release
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,27 +26,27 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up 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

# Login against a Docker registry except on PR
# https://github.com/docker/login-action
- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker meta
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
#tags: |
Expand All @@ -59,7 +59,7 @@ jobs:
# https://github.com/docker/build-push-action
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
provenance: false
Expand Down

0 comments on commit a6e32f7

Please sign in to comment.