Skip to content

Commit

Permalink
Use self-hosted action runner
Browse files Browse the repository at this point in the history
  • Loading branch information
buchi committed Jan 27, 2025
1 parent 620da80 commit f840ecd
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
name: Build Docker image

on:
workflow_dispatch:
push:
tags:
- '*.*.*'
branches:
- '**'

jobs:
build:
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -16,34 +19,37 @@ jobs:
run: mkdir src

- name: Checkout opengever.maintenance
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: 4teamwork/opengever.maintenance
path: src/opengever.maintenance

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
with:
driver: remote
endpoint: tcp://buildkitd.buildx:1234

- name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Extract metadata from Git reference
id: meta_ogcore
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: |
4teamwork/ogcore
tags: |
type=pep440,pattern={{version}}
- name: Build and push ogcore
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
context: .
file: ./docker/core/Dockerfile
Expand All @@ -58,15 +64,15 @@ jobs:
- name: Extract metadata from Git reference for ogtestserver
id: meta_ogtestserver
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: |
4teamwork/ogtestserver
tags: |
type=pep440,pattern={{version}}
- name: Build and push ogtestserver
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
context: .
file: ./docker/testserver/Dockerfile
Expand Down

0 comments on commit f840ecd

Please sign in to comment.