11 Commits

Author SHA1 Message Date
Stefano Pigozzi
b6b3902db5 Improve GitHub Actions workflows (based on #198) 2022-12-19 18:39:19 +01:00
Stefano Pigozzi
2772309239 Remove linux/arm64/v8 too, as something does not work there
:(
2022-12-04 01:42:29 +01:00
Stefano Pigozzi
6007aa451a Remove linux/arm/v7, as pip is broken there? 2022-12-04 01:39:41 +01:00
Stefano Pigozzi
47337d0061 Upgrade docker/build-push-action to v3.2.0 2022-12-04 01:35:14 +01:00
Stefano Pigozzi
3881012f96 Specify linux/arm64/v8 2022-12-04 01:33:45 +01:00
Stefano Pigozzi
85862a0547 Do not tag images with the full name
github does not like it appearently
2022-12-04 01:19:57 +01:00
Stefano Pigozzi
29f3397d00 Add missing commas 2022-12-04 01:18:05 +01:00
Stefano Pigozzi
b6fd15636f Update built image tag names 2022-12-04 01:16:29 +01:00
Stefano Pigozzi
1d1398281a Do not run CodeQL on every push 2022-12-04 01:14:35 +01:00
Stefano Pigozzi
1ed470d492 Update Steffo99/actions-semver to v0.3.5 2022-12-04 01:14:00 +01:00
Stefano Pigozzi
2087b7f446 Build ARM Docker images
Closes #194.
2022-12-04 01:06:49 +01:00
3 changed files with 62 additions and 8 deletions

View File

@@ -12,14 +12,12 @@
name: "CodeQL" name: "CodeQL"
on: on:
push:
branches: [ master ]
pull_request: pull_request:
# The branches below must be a subset of the branches above # The branches below must be a subset of the branches above
branches: [ master ] branches: [ master ]
jobs: jobs:
analyze: codeql-analyze:
name: Analyze name: Analyze
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:

View File

@@ -20,7 +20,9 @@ jobs:
- name: "❓ Find the release semantic version" - name: "❓ Find the release semantic version"
id: semver id: semver
uses: Steffo99/actions-semver@v0.1.0 uses: Steffo99/actions-semver@v0.3.5
with:
string: ${{ github.event.release.tag_name }}
- name: "🔨 Setup Buildx" - name: "🔨 Setup Buildx"
uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v1
@@ -33,12 +35,14 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- name: "🏗 Build and push the Docker image" - name: "🏗 Build and push the Docker image"
uses: docker/build-push-action@v2 uses: docker/build-push-action@v3.2.0
with: with:
tags: >- tags: >-
ghcr.io/steffo99/greed:${{ steps.semver.outputs.full }}, ghcr.io/steffo99/greed:${{ steps.semver.outputs.precedence }},
ghcr.io/steffo99/greed:${{ steps.semver.outputs.patch }}, ghcr.io/steffo99/greed:${{ steps.semver.outputs.core }},
ghcr.io/steffo99/greed:${{ steps.semver.outputs.minor }}, ghcr.io/steffo99/greed:${{ steps.semver.outputs.pair }},
ghcr.io/steffo99/greed:${{ steps.semver.outputs.major }}, ghcr.io/steffo99/greed:${{ steps.semver.outputs.major }},
ghcr.io/steffo99/greed:latest ghcr.io/steffo99/greed:latest
platforms: >-
linux/amd64
push: true push: true

52
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,52 @@
name: "Build Docker image"
on:
push:
tags:
- "v*"
defaults:
run:
shell: bash
jobs:
build-docker:
name: "🐳 Build and publish Docker image"
runs-on: ubuntu-latest
steps:
- name: "Checkout repository"
uses: actions/checkout@v2
- name: "❓ Find the release semantic version"
id: semver
uses: Steffo99/actions-semver@v0.3.5
with:
string: ${{ github.ref_name }}
- name: "🔨 Setup Buildx"
uses: docker/setup-buildx-action@v1
- name: "🔑 Login to GitHub Containers"
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: "🔽 Find the lowercase name of the repository"
id: reponame
uses: ASzc/change-string-case-action@v5
with:
string: ${{ github.repository }}
- name: "🏗 Build and push the Docker image"
uses: docker/build-push-action@v3
with:
tags: >-
ghcr.io/${{ steps.reponame.outputs.lowercase }}:${{ steps.semver.outputs.precedence }},
ghcr.io/${{ steps.reponame.outputs.lowercase }}:${{ steps.semver.outputs.core }},
ghcr.io/${{ steps.reponame.outputs.lowercase }}:${{ steps.semver.outputs.pair }},
ghcr.io/${{ steps.reponame.outputs.lowercase }}:${{ steps.semver.outputs.major }},
ghcr.io/${{ steps.reponame.outputs.lowercase }}:latest
push: true