Skip to content

26huitailang is testing out GitHub Actions 🚀 #49

26huitailang is testing out GitHub Actions 🚀

26huitailang is testing out GitHub Actions 🚀 #49

Workflow file for this run

name: yogo
env:
GOPROXY: https://goproxy.io,direct
GO111MODULE: "on"
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
on:
push:
branches: [main]
tags:
- "v*"
pull_request:
branches: [main]
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
peterchen0802/yogo
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
file: ./compose/production/web/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}