Skip to content

Commit

Permalink
update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
BennyThink committed Feb 11, 2024
1 parent 8db3686 commit 2f562ed
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/builder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,51 +9,51 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: true

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v3

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

- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

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

- name: Lower case for Docker Hub
id: dh_string
uses: ASzc/change-string-case-action@v1
uses: ASzc/change-string-case-action@v6
with:
string: ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}

- name: Lower case for ghcr
id: ghcr_string
uses: ASzc/change-string-case-action@v1
uses: ASzc/change-string-case-action@v6
with:
string: ${{ github.event.repository.full_name }}

- name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
Expand Down

0 comments on commit 2f562ed

Please sign in to comment.