Skip to content

Commit

Permalink
Merge pull request #3 from controllan/feature/upgrade-ci-actions
Browse files Browse the repository at this point in the history
bump: upgrade actions version to latest.
  • Loading branch information
pat-git authored Sep 8, 2024
2 parents cb85328 + 94dae5d commit 45b726b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ jobs:
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4.1.7

# Login against a Docker registry except on PR
# https://github.com/docker/login-action
- name: Log into registry ${{ vars.CONTAINER_REGISTRY_URL }}
if: github.event_name != 'pull_request'
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
uses: docker/login-action@v3.3.0
with:
registry: ${{ vars.CONTAINER_REGISTRY_URL }}
username: ${{ github.actor }}
Expand All @@ -58,14 +58,14 @@ jobs:
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
uses: docker/metadata-action@v5.5.1
with:
images: ${{ vars.CONTAINER_REGISTRY_URL }}/${{ vars.CONTAINER_REGISTRY_REPOSITORY }}

# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image [${{ vars.CONTAINER_REGISTRY_URL }}/${{ vars.CONTAINER_REGISTRY_REPOSITORY }}]
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
uses: docker/build-push-action@v6.7.0
with:
context: .
push: ${{ github.event_name != 'pull_request' && inputs.dry_run == false }}
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.22-alpine as builder
FROM golang:1.22-alpine AS builder

RUN apk update && apk add \
git \
Expand Down

0 comments on commit 45b726b

Please sign in to comment.