Skip to content

Commit 8f72bbd

Browse files
committed
Update Dockerfile and GitHub actions for improved compatibility
- Update Dockerfile: change the alias from `as builder` to `AS builder` - Upgrade Docker build workflow actions: - `docker/setup-buildx-action` from version 2 to version 3 - `docker/login-action` from version 2 to version 3 - `docker/build-push-action` from version 4 to version 6 - Modify the `tags` parameter value in the build-push step of Docker build workflow
1 parent 87e451f commit 8f72bbd

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.github/workflows/docker-build-and-push.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,21 @@ jobs:
1919
platforms: linux/amd64,linux/arm64
2020

2121
- name: Set up Docker Buildx
22-
uses: docker/setup-buildx-action@v2
22+
uses: docker/setup-buildx-action@v3
2323

2424
- name: Log in to GitHub Container Registry
25-
uses: docker/login-action@v2
25+
uses: docker/login-action@v3
2626
with:
2727
registry: ghcr.io
2828
username: ${{ github.repository_owner }}
2929
password: ${{ secrets.GITHUB_TOKEN }}
3030

3131
- name: Build and push Docker image
32-
uses: docker/build-push-action@v4
32+
uses: docker/build-push-action@v6
3333
with:
3434
context: .
3535
push: true
3636
tags: |
37-
ghcr.io/${{ github.repository }}:latest
38-
ghcr.io/${{ github.repository }}:${{ github.sha }}
37+
ghcr.io/${{ github.repository_owner }}/renderer_rs:latest
38+
ghcr.io/${{ github.repository_owner }}/renderer_rs:${{ github.sha }}
3939
platforms: linux/amd64,linux/arm64
40-

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build stage
2-
FROM rust:1-alpine as builder
2+
FROM rust:1-alpine AS builder
33

44
RUN apk add --no-cache build-base
55

0 commit comments

Comments
 (0)