-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (36 loc) · 894 Bytes
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Master workflow
on:
push:
branches: [ master ]
jobs:
docker:
name: Build Docker image
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
config-inline: |
[registry."docker.io"]
mirrors = ["mirror.gcr.io"]
- name: Login to Gitea container registry
uses: docker/login-action@v3
with:
registry: git.jlel.se
username: nologin
password: ${{ secrets.GITEA_TOKEN }}
- name: Test
uses: docker/build-push-action@v5
with:
push: false
target: test
tags: test
- name: Build image
uses: docker/build-push-action@v5
with:
push: true
target: base
tags: git.jlel.se/jlelse/goshort:latest
provenance: false