Skip to content
Snippets Groups Projects
Commit 5f585002 authored by Griefed's avatar Griefed :joystick:
Browse files

ci: Move Docker build for GitHub container registry to GitLab

parent 0bdca0e9
No related branches found
No related tags found
No related merge requests found
......@@ -40,26 +40,4 @@ jobs:
**Changes in this release:**
${{ steps.conventional_changelog.outputs.changelog }}
draft: false
prerelease: false
# DOCKER RELATED
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm/v7,linux/arm64
push: true
tags: |
ghcr.io/${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPO }}:latest
ghcr.io/${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPO }}:${{steps.tag.outputs.tag}}
prerelease: false
\ No newline at end of file
......@@ -15,6 +15,7 @@ test docker:
before_script:
- docker login -u "$DOCKERHUB_USER" -p "$DOCKERHUB_TOKEN" docker.io
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- docker login -u "$DOCKERHUB_USER" -p "$GITHUB_TOKEN" ghcr.io
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- docker buildx create --use --name grfdbuilder
script:
......@@ -23,12 +24,14 @@ test docker:
--platform linux/amd64,linux/arm/v7,linux/arm64
--tag "$CI_REGISTRY_IMAGE:port-develop"
--tag "index.docker.io/$DOCKERHUB_USER/$DOCKERHUB_REPO:port-develop"
--tag "ghcr.io/$DOCKERHUB_USER/$DOCKERHUB_REPO:port-develop"
--file Dockerfile.port .
- docker buildx build
--push
--platform linux/amd64,linux/arm/v7,linux/arm64
--tag "$CI_REGISTRY_IMAGE:proxy-develop"
--tag "index.docker.io/$DOCKERHUB_USER/$DOCKERHUB_REPO:proxy-develop"
--tag "ghcr.io/$DOCKERHUB_USER/$DOCKERHUB_REPO:proxy-develop"
--file Dockerfile.proxy .
except:
refs:
......@@ -68,6 +71,7 @@ build:
before_script:
- docker login -u "$DOCKERHUB_USER" -p "$DOCKERHUB_TOKEN" docker.io
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- docker login -u "$DOCKERHUB_USER" -p "$GITHUB_TOKEN" ghcr.io
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- docker buildx create --use --name grfdbuilder
script:
......@@ -75,15 +79,18 @@ build:
--push
--platform linux/amd64,linux/arm/v7,linux/arm64
--tag "$CI_REGISTRY_IMAGE:port"
--tag "$CI_REGISTRY_IMAGE:latest"
--tag "index.docker.io/$DOCKERHUB_USER/$DOCKERHUB_REPO:port"
--tag "index.docker.io/$DOCKERHUB_USER/$DOCKERHUB_REPO:latest"
--tag "ghcr.io/$DOCKERHUB_USER/$DOCKERHUB_REPO:port"
--file Dockerfile.port .
- docker buildx build
--push
--platform linux/amd64,linux/arm/v7,linux/arm64
--tag "$CI_REGISTRY_IMAGE:proxy"
--tag "index.docker.io/$DOCKERHUB_USER/$DOCKERHUB_REPO:proxy"
--tag "ghcr.docker.io/$DOCKERHUB_USER/$DOCKERHUB_REPO:proxy"
--tag "$CI_REGISTRY_IMAGE:latest"
--tag "index.docker.io/$DOCKERHUB_USER/$DOCKERHUB_REPO:latest"
--tag "ghcr.io/$DOCKERHUB_USER/$DOCKERHUB_REPO:latest"
--file Dockerfile.proxy .
only:
- tags
\ No newline at end of file
......@@ -83,13 +83,16 @@ generateNotes:
hidden: false
- type: 'perf'
section: ' Performance'
hidden: false
- type: 'refactor'
section: ':scissors: Refactor'
hidden: false
- type: 'revert'
section: '👀 Reverts'
hidden: false
- type: 'style'
section: '💈 Style'
hidden: false
- type: 'test'
section: '🧪 Tests'
hidden: false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment