-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (31 loc) · 916 Bytes
/
publish_testing.yml
File metadata and controls
41 lines (31 loc) · 916 Bytes
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
39
40
name: Build & Publish Unstable Docker Image
on:
workflow_dispatch: {}
permissions:
contents: read
packages: write
id-token: write
env:
IMAGE_NAME: fachschaftmathphysinfo/kummerkasten
REGISTRY: ghcr.io
jobs:
unstable:
runs-on: ubuntu-latest
name: Build & Push “unstable” Tag
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Log in to GitHub Container Registry
uses: docker/login-action@v4
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build & tag as unstable
run: |
IMAGE=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
docker build -t $IMAGE:unstable .
- name: Push unstable tag
run: |
IMAGE=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
docker push $IMAGE:unstable