Skip to content

chore(deps): update rust docker tag (#10) #77

chore(deps): update rust docker tag (#10)

chore(deps): update rust docker tag (#10) #77

Workflow file for this run

name: "Build"
on:
push:
branches:
- "**"
tags:
- "**"
jobs:
docker-image:
name: "Docker image"
runs-on: self-hosted
steps:
- name: "Define the Docker image version"
id: image_version
run: |
if [[ "${GITHUB_REF}" =~ 'refs/tags/' ]]
then
echo DEFAULT_IMAGE_VERSION=${GITHUB_REF#refs/tags/} >> $GITHUB_OUTPUT
echo ALPINE_IMAGE_VERSION=${GITHUB_REF#refs/tags/}-alpine >> $GITHUB_OUTPUT
else
echo DEFAULT_IMAGE_VERSION=latest >> $GITHUB_OUTPUT
echo ALPINE_IMAGE_VERSION=alpine >> $GITHUB_OUTPUT
fi
- name: "Checkout"
uses: actions/checkout@v4
- 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 / default"
uses: docker/build-push-action@v6
with:
push: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') }}
tags: xstefanox/swarmcret:${{ steps.image_version.outputs.DEFAULT_IMAGE_VERSION }}
platforms: linux/amd64,linux/arm64
target: default
- name: "Build and push / Alpine"
uses: docker/build-push-action@v6
with:
push: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') }}
tags: xstefanox/swarmcret:${{ steps.image_version.outputs.ALPINE_IMAGE_VERSION }}
platforms: linux/amd64,linux/arm64
target: alpine