Skip to content

use 'raw' not 'latest' #28

use 'raw' not 'latest'

use 'raw' not 'latest' #28

Workflow file for this run

on: [push, release]
jobs:
test:
uses: ./.github/workflows/ci.yml
publish:
runs-on: ubuntu-20.04
# needs: test
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get image metadata
id: meta
uses: docker/metadata-action@v3
with:
images: ghcr.io/${{ github.repository }}
tags: |
type=semver,pattern={{raw}}
type=raw,value=latest,enable={{is_default_branch}}
- run: echo ${{ steps.meta.outputs.tags }}
# - name: Build and push Docker image
# uses: docker/build-push-action@v2
# with:
# push: true
# tags: ${{ steps.meta.outputs.tags }}