35 lines
814 B
YAML
35 lines
814 B
YAML
name: Workflow Example
|
|
|
|
on:
|
|
- push
|
|
|
|
jobs:
|
|
Build and push image:
|
|
runs-on: ubuntu
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
|
|
- name: Setup Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
with:
|
|
driver-opts: network=host
|
|
|
|
- name: Login to registry
|
|
uses: docker/login-action@v2
|
|
with:
|
|
registry: http://localhost:3000
|
|
username: <username>
|
|
password: <application-token>
|
|
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v4
|
|
with:
|
|
context: .
|
|
push: true
|
|
tags: |
|
|
localhost:3000/${{ gitea.repository }}:latest
|
|
localhost:3000/${{ gitea.repository }}:${{ gitea.sha }} |