Skip to content

Commit

Permalink
Update docker workflow action versions
Browse files Browse the repository at this point in the history
Signed-off-by: Cherry <[email protected]>
  • Loading branch information
cherryroots authored Oct 21, 2023
1 parent 7e98007 commit 6908117
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/build-and-publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

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

# https://github.com/sigstore/cosign-installer
- name: Install cosign
Expand All @@ -37,19 +37,19 @@ jobs:
cosign-release: 'v1.13.1'

- 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

- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand All @@ -58,7 +58,7 @@ jobs:
# Extract metadata (tags, labels) for Docker
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
flavor: |
latest=auto
Expand All @@ -81,7 +81,7 @@ jobs:
# Build and push Docker image with Buildx
- name: Build and push base Docker image
id: build-and-push-base
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
push: true
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:

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

# https://github.com/sigstore/cosign-installer
- name: Install cosign
Expand All @@ -126,19 +126,19 @@ jobs:
cosign-release: 'v1.13.1'

- 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

- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand All @@ -147,7 +147,7 @@ jobs:
# Extract metadata (tags, labels) for Docker
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
flavor: |
latest=auto
Expand All @@ -171,7 +171,7 @@ jobs:
# https://github.com/docker/build-push-action
- name: Build and push full Docker image
id: build-and-push-full
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
build-args: FULL=true
context: .
Expand Down Expand Up @@ -208,25 +208,25 @@ jobs:
id-token: write
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

- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: |
kaveenk/gpt3discord
ghcr.io/${{ github.repository }}
- name: Build and push base Docker image
id: build-and-push-base
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
push: false
Expand All @@ -238,7 +238,7 @@ jobs:

- name: Build and push full Docker image
id: build-and-push-full
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
build-args: FULL=true
context: .
Expand Down

0 comments on commit 6908117

Please sign in to comment.