ci(deps): bump docker/build-push-action from 5.0.0 to 5.1.0 (#157) #146
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Stage | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
env: | |
PLATFORMS: linux/amd64,linux/arm/v7,linux/arm64/v8 | |
jobs: | |
stage: | |
runs-on: ubuntu-latest | |
environment: staging | |
name: Build early access and publish to GitHub | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Setup QEMU | |
uses: docker/[email protected] | |
- name: Setup Docker Buildx | |
uses: docker/[email protected] | |
- name: Cache Docker layers | |
uses: actions/cache@v3 | |
with: | |
path: /tmp/.buildx-cache | |
key: ${{ runner.os }}-buildx-${{ hashFiles('Dockerfile', '.dockerignore') }} | |
- name: Login to GHCR | |
uses: docker/[email protected] | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GPR_PAT }} | |
- name: Build images and push to GHCR | |
uses: docker/[email protected] | |
with: | |
context: . | |
push: true | |
platforms: ${{ env.PLATFORMS }} | |
tags: ghcr.io/tomerfi/version-bumper:early-access | |
build-args: | | |
VCS_REF=${{ github.sha }} | |
BUILD_DATE=$(date +'%Y-%m-%d') | |
VERSION=early-access | |
cache-from: | | |
type=local,src=/tmp/.buildx-cache | |
ghcr.io/tomerfi/version-bumper:early-access | |
cache-to: type=local,dest=/tmp/.buildx-cache |