Skip to content

Commit

Permalink
Fix build of gitlab container
Browse files Browse the repository at this point in the history
This is hard to test but uses the newer action which should have a newer
version of node. Also added the automatic weekly rebuild of the image.
  • Loading branch information
Michael Vasseur committed Apr 27, 2024
1 parent 16c3a06 commit 518ebfd
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build-gitlab-container-release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: 'Build GitLab CI container (Release)'

on:
schedule:
- cron: "4 3 * * 5"
push:
branches:
- main
Expand All @@ -14,26 +16,26 @@ jobs:
packages: write
contents: read
steps:
- uses: actions/checkout@v4
- name: Checkout:
uses: actions/checkout@v4

- name: Use the same PHP config as the contributor containers
run: cp -r docker-{contributor,gitlabci}/php-config

- name: Log in to Docker Container registry
if: github.ref == 'refs/heads/main'
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
uses: docker/metadata-action@v5
with:
images: domjudge/gitlabci

- name: Build and push Docker images
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
uses: docker/build-push-action@v5
with:
context: "./docker-gitlabci"
push: true
Expand Down

0 comments on commit 518ebfd

Please sign in to comment.