Skip to content
This repository was archived by the owner on Aug 2, 2023. It is now read-only.

Commit 4bf0269

Browse files
authored
Merge pull request #9 from Arne1303/develop
Develop
2 parents 3379d34 + 1d9d8db commit 4bf0269

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/build_tag.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build and publish with tag
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
docker:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
packages: write
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v2
18+
19+
- name: Login to GitHub Container Registry
20+
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
21+
with:
22+
registry: ghcr.io
23+
username: ${{ github.actor }}
24+
password: ${{ secrets.GITHUB_TOKEN }}
25+
26+
- name: Metadata
27+
id: meta
28+
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
29+
with:
30+
images: ghcr.io/${{ github.repository }}
31+
32+
- name: Build and push
33+
id: docker_build
34+
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
35+
with:
36+
context: src
37+
push: true
38+
tags: ${{ steps.meta.outputs.tags }}
39+
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)