bp
Publish Cargo and Docker package / Publish-Cargo (push) Has started running Details

main
HeNine 1 year ago
parent b5a8d6716f
commit 43952557bb

@ -32,38 +32,38 @@ jobs:
command: publish
args: --index=https://git.raptorpond.com/henine/_cargo-index.git --token "Bearer ${{ secrets.PACKAGE_TOKEN }}"
Publish-Docker:
runs-on: ubuntu-latest
needs: Publish-Cargo
steps:
- name: Check out repository code
uses: https://github.com/actions/checkout@v3
# Publish-Docker:
# runs-on: ubuntu-latest
# needs: Publish-Cargo
# steps:
# - name: Check out repository code
# uses: https://github.com/actions/checkout@v3
- name: Write release version
run: |
VERSION=${GITHUB_REF_NAME#v}
echo Version: $VERSION
echo "VERSION=$VERSION" >> $GITHUB_ENV
# - name: Write release version
# run: |
# VERSION=${GITHUB_REF_NAME#v}
# echo Version: $VERSION
# echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Install Docker
run: curl -fsSL https://get.docker.com | sh
# - name: Install Docker
# run: curl -fsSL https://get.docker.com | sh
- name: Set up Docker Buildx
uses: https://github.com/docker/setup-buildx-action@v2
# - name: Set up Docker Buildx
# uses: https://github.com/docker/setup-buildx-action@v2
- name: Login to registry
uses: docker/login-action@v2
with:
registry: git.raptorpond.com
username: henine
password: "${{ secrets.PACKAGE_TOKEN }}"
# - name: Login to registry
# uses: docker/login-action@v2
# with:
# registry: git.raptorpond.com
# username: henine
# password: "${{ secrets.PACKAGE_TOKEN }}"
- name: Build and push
uses: https://github.com/docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags:
- git.raptorpond.com/${{ github.repository }}:latest
- git.raptorpond.com/${{ github.repository }}:${{ env.VERSION }}
# - name: Build and push
# uses: https://github.com/docker/build-push-action@v2
# with:
# context: .
# file: ./Dockerfile
# push: true
# tags:
# - git.raptorpond.com/${{ github.repository }}:latest
# - git.raptorpond.com/${{ github.repository }}:${{ env.VERSION }}

Loading…
Cancel
Save