Skip to content

Update mundialis/actinia Docker tag to v2.6.7 (#71) #200

Update mundialis/actinia Docker tag to v2.6.7 (#71)

Update mundialis/actinia Docker tag to v2.6.7 (#71) #200

Workflow file for this run

# Summary:
#
# job docker-main-latest:
# * for push to main branch, update "latest" tag
#
# job docker-sha-release-latest:
# * for release, update "latest" tag
# * git ref tag, eg. "sha-ad132f5"
# * release tag major.minor.path, e.g. "1.2.3" (alpine g78)
# * release tag major.minor, e.g. "1.2" (alpine g78)
#
# job docker-release-g79:
# * release tag for g79, e.g. "1.2.3.79" (alpine g79)
name: Docker
on:
push:
branches: [main]
tags: ['*.*.*']
paths-ignore: ['docs/**']
release:
types: [published]
env:
# Additionally mentioned in docker-sha-release-latest
# as use of variable fails there
DOCKERHUB_REPOSITORY: mundialis/actinia
jobs:
# only run for push to main branch
# take care of latest tag
docker-main-latest:
name: build and push latest for main branch
if: startsWith(github.ref, 'refs/heads/main')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: 0
- id: meta
name: Create tag name
run: |
tag=${DOCKERHUB_REPOSITORY}:latest
echo "tags=$tag" >> $GITHUB_OUTPUT
- name: log
run: echo ${{ steps.meta.outputs.tags }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v5
with:
push: true
pull: true
context: .
tags: ${{ steps.meta.outputs.tags }}
file: actinia-alpine/Dockerfile
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
# run always
# On release, take care of latest and release tags
docker-sha-release-latest:
name: build and push release or latest
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: 0
- name: Create image and tag names
id: meta
uses: docker/metadata-action@v5
with:
# images: ${DOCKERHUB_REPOSITORY}
images: mundialis/actinia
tags: |
type=ref,event=tag
type=semver,pattern={{major}}.{{minor}}
flavor: |
latest=auto
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v5
with:
push: true
pull: true
context: .
tags: ${{ steps.meta.outputs.tags }}
file: actinia-alpine/Dockerfile
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}