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

main
HeNine 2 years ago
parent b5a8d6716f
commit 43952557bb

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

Loading…
Cancel
Save