Skip to content

bump alpine to 3.21.1 #2

bump alpine to 3.21.1

bump alpine to 3.21.1 #2

name: release-buildx
on: [push, pull_request]
jobs:
buildx:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: arm64,amd64
-
name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- uses: docker/login-action@v2
if: github.event_name != 'pull_request'
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- uses: Surgo/docker-smart-tag-action@v1
id: smarttag
with:
docker_image: tsuru/netshoot
default_branch: master
tag_with_sha: "true"
- uses: docker/build-push-action@v4
if: github.event_name != 'pull_request'
with:
push: true
tags: ${{ steps.smarttag.outputs.tag }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
platforms: linux/amd64,linux/arm64