-
Notifications
You must be signed in to change notification settings - Fork 21
34 lines (26 loc) · 967 Bytes
/
docker.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
# Build and push the Docker builder image which contain all of the build
# dependencies for OpenGamepadUI
name: Create and publish a Docker image
# Only trigger building the Docker image if the Dockerfile has changed.
on:
push:
paths:
- "docker/Dockerfile"
- ".github/workflows/docker.yaml"
env:
IMAGE_NAME: ghcr.io/shadowblip/opengamepadui-builder
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log in to Docker registry
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Build and push latest Docker image
run: make docker-builder-push
- name: Build and push versioned Docker image
run: make docker-builder-push IMAGE_TAG=$(grep 'ARG GODOT_VER' docker/Dockerfile | cut -d'=' -f2)