Skip to content

Release Docker Image #2

Release Docker Image

Release Docker Image #2

name: Release Docker Image
on:
workflow_dispatch: {}
push:
tags:
- "v*.*.*"
env:
REGISTRY: ghcr.io
IMAGE_NAME: wandera/stf
TAG: ${{ github.ref_name }}
jobs:
release-docker-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ env.TAG }}
- name: MM test
run: |
echo "${{ env.TAG }}"
# - name: Log in to the Container registry
# uses: docker/login-action@v3
# with:
# registry: ${{ env.REGISTRY }}
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
#
# - name: Extract metadata (tags, labels) for Docker
# id: meta
# uses: docker/metadata-action@v5
# with:
# images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
# tags: |
# type=semver,pattern={{raw}}-wnd
# type=sha
#
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3
#
# - name: Docker build & push
# uses: docker/build-push-action@v5
# with:
# push: true
# context: .
# platforms: linux/amd64,linux/arm64
# build-args: |
# VERSION=${{ github.ref_name }}
# tags: ${{ steps.meta.outputs.tags }}
# labels: ${{ steps.meta.outputs.labels }}