mirror of
https://github.com/Misterblue/convoar.git
synced 2026-08-14 09:02:14 +00:00
docker-publish.yml: another attempt at YAML list syntax for build-args
This commit is contained in:
@@ -39,41 +39,13 @@ jobs:
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: ./docker
|
||||
build-args:
|
||||
TARGET=Release
|
||||
VERSION=${{ env.CVERSION }}
|
||||
build-args: |
|
||||
TARGET=Release
|
||||
VERSION=${{ env.CVERSION }}
|
||||
platforms: linux/amd64
|
||||
# platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: |
|
||||
ghcr.io/${{ env.IMAGE_OWNER }}/${{ env.IMAGE_NAME }}:latest
|
||||
ghcr.io/${{ env.IMAGE_OWNER }}/${{ env.IMAGE_NAME }}:${{ env.CVERSION }}
|
||||
|
||||
# run: |
|
||||
# cd docker
|
||||
# docker build . --file Dockerfile --build-args VERSION=$VERSION --tag $IMAGE_NAME
|
||||
|
||||
#- name: Log into registry
|
||||
# run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
|
||||
|
||||
#- name: Push image
|
||||
# run: |
|
||||
# IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME
|
||||
|
||||
# Change all uppercase to lowercase
|
||||
# IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
|
||||
|
||||
# Strip git ref prefix from version
|
||||
# VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
|
||||
|
||||
# Strip "v" prefix from tag name
|
||||
# [[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
|
||||
|
||||
# Use Docker `latest` tag convention
|
||||
# [ "$VERSION" == "master" ] && VERSION=latest
|
||||
|
||||
# echo IMAGE_ID=$IMAGE_ID
|
||||
# echo VERSION=$VERSION
|
||||
|
||||
#docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
|
||||
#docker push $IMAGE_ID:$VERSION
|
||||
|
||||
Reference in New Issue
Block a user