forked from FrederikBaerentsen/BrickTracker
thetman
bfbe2885dc
Some checks failed
Build and push image / deploy (push) Has been cancelled
actions testing
47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
name: Build and push image
|
|
|
|
on:
|
|
# schedule:
|
|
# - cron: '59 4 * * 0'
|
|
push:
|
|
branches:
|
|
- 'master'
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
-
|
|
name: Check out repository code
|
|
uses: actions/checkout@v3
|
|
-
|
|
run: |
|
|
echo "The job was automatically triggered by a ${{ gitea.event_name }} event."
|
|
echo "The ${{ gitea.repository }} repository has been cloned to the runner."
|
|
-
|
|
name: Set up QEMU
|
|
uses: https://github.com/docker/setup-qemu-action@v3
|
|
with:
|
|
platforms: 'arm64,amd64'
|
|
-
|
|
name: Set up Docker Buildx
|
|
uses: https://github.com/docker/setup-buildx-action@v3
|
|
-
|
|
name: Login to Registry
|
|
uses: https://github.com/docker/login-action@v3
|
|
with:
|
|
registry: ${{ secrets.PACKAGE_URL }}
|
|
username: ${{ gitea.actor }}
|
|
password: ${{ secrets.PACKAGE_TOKEN }}
|
|
-
|
|
name: Build and push
|
|
uses: https://github.com/docker/build-push-action@v6
|
|
env:
|
|
ACTIONS_RUNTIME_TOKEN: ''
|
|
with:
|
|
push: true
|
|
tags: ${{ secrets.PACKAGE_URL }}/${{ gitea.repository }}:latest
|
|
platforms: linux/amd64,linux/arm64
|
|
|