This commit is contained in:
35
.gitea/workflows/build_docker.yml_error
Normal file
35
.gitea/workflows/build_docker.yml_error
Normal file
@@ -0,0 +1,35 @@
|
||||
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 }}
|
||||
Reference in New Issue
Block a user