32 lines
929 B
YAML
32 lines
929 B
YAML
# Automatic image build and upload workflow
|
|
# It does not run on actions-docker:
|
|
# 1. to avoid issues, and
|
|
# 2. because we don't need it.
|
|
name: upload
|
|
|
|
on:
|
|
- push
|
|
|
|
jobs:
|
|
upload:
|
|
runs-on: docker
|
|
steps:
|
|
- name: Setup system
|
|
- run: |
|
|
apt update
|
|
apt upgrade -y
|
|
apt install -y docker
|
|
- name: Set up QEMU
|
|
uses: https://code.forgejo.org/docker/setup-qemu-action@v3
|
|
- name: Set up Docker Buildx
|
|
uses: https://code.forgejo.org/docker/setup-buildx-action@v3
|
|
- name: Login to StarOpenSource Git
|
|
uses: https://code.forgejo.org/docker/login-action@v3
|
|
with:
|
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
|
- name: Build and push
|
|
uses: https://code.forgejo.org/docker/build-push-action@v6
|
|
with:
|
|
push: true
|
|
tags: staropensource/actions-docker:latest
|