-
Notifications
You must be signed in to change notification settings - Fork 5
48 lines (38 loc) · 1.22 KB
/
docker.yml
File metadata and controls
48 lines (38 loc) · 1.22 KB
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
41
42
43
44
45
46
47
name: Update Docker Images
on:
workflow_dispatch:
permissions:
contents: read
packages: write
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
config:
- name: "appimage"
tag: "latest"
dockerfile: "Dockerfile.appimage"
#- name: "mxe"
# tag: "latest"
# dockerfile: "Dockerfile.mxe"
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker image
run: |
echo "Building image variant: ${{ matrix.config.name }}:${{ matrix.config.tag }}"
IMAGE="ghcr.io/${{ github.repository_owner }}/${{ matrix.config.name }}:${{ matrix.config.tag }}"
cd docker
cp -v "${{ matrix.config.dockerfile }}" Dockerfile
docker build -t "${IMAGE}" .
docker push "${IMAGE}"
- name: Summary
run: |
echo "pushed image: ghcr.io/${{ github.repository_owner }}/${{ matrix.config.name }}:${{ matrix.config.tag }}"