Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Docker containers on GitHub actions #979

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 0 additions & 104 deletions .circleci/config.yml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/docker-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build stable Docker image

on:
push:
tags:
- "v*"

jobs:
build:
name: Build image
runs-on: ubuntu-20.04

steps:
- name: Checkout project
uses: actions/checkout@v2

- name: Set env variables
run: |
echo "BRANCH=$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//-/g')" >> $GITHUB_ENV
REPO_OWNER=${{ github.repository_owner }}
echo "IMAGE_NAME=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
id: qemu

- name: Setup Docker buildx
uses: docker/setup-buildx-action@v1
id: buildx

- name: Run Docker buildx
run: |
docker buildx build \
--platform linux/amd64,linux/arm64,linux/arm/v7 \
--tag ghcr.io/$IMAGE_NAME:$BRANCH \
--output "type=registry" .
43 changes: 43 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build latest Docker image

on:
push:
branches: [ master ]
workflow_dispatch:


jobs:
build:
name: Build image
runs-on: ubuntu-20.04

steps:
- name: Checkout project
uses: actions/checkout@v2

- name: Set env variables
run: |
echo "BRANCH=$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//-/g')" >> $GITHUB_ENV
echo "IMAGE_NAME=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
id: qemu

- name: Setup Docker buildx
uses: docker/setup-buildx-action@v1
id: buildx

- name: Run Docker buildx
run: |
docker buildx build \
--platform linux/amd64,linux/arm64,linux/arm/v7 \
--tag ghcr.io/$IMAGE_NAME:$BRANCH \
--output "type=registry" .
File renamed without changes.
49 changes: 0 additions & 49 deletions dockerfiles/Dockerfile.arm32v7

This file was deleted.

48 changes: 0 additions & 48 deletions dockerfiles/Dockerfile.arm64v8

This file was deleted.