2024-01-14 13:08:27 +08:00
|
|
|
name: Docker Push
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
2024-01-14 14:07:52 +08:00
|
|
|
docker:
|
2024-01-14 13:08:27 +08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- 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 }}
|
2024-01-14 14:07:52 +08:00
|
|
|
- name: Build and push
|
2024-01-14 13:08:27 +08:00
|
|
|
uses: docker/build-push-action@v5
|
|
|
|
with:
|
2024-01-14 14:09:15 +08:00
|
|
|
context: '{{defaultContext}}:docker'
|
2024-01-14 14:07:52 +08:00
|
|
|
platforms: linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7
|
|
|
|
push: true
|
|
|
|
tags: sitoi/dailycheckin:latest
|