Skip to content

Update all minor and patch github action updates #428

Update all minor and patch github action updates

Update all minor and patch github action updates #428

Workflow file for this run

# Make sure to enable 'Require status checks to pass before merging' on the branch protection,
# and to select the 'Build-and-Push' action.
name: Build and Push
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
Build-and-Push:
runs-on: ubuntu-latest
if: github.event.pull_request.base.ref != 'main'
steps:
- name: Checkout master
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
- name: Log in to container registry
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push image
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7
with:
push: true
tags: |
ghcr.io/vzauartcc/api:${{ github.sha }}
ghcr.io/vzauartcc/api:buildcache
cache-from: type=registry,ref=ghcr.io/vzauartcc/api:buildcache
cache-to: type=registry,ref=ghcr.io/vzauartcc/api:buildcache,mode=max