Skip to content

Bump golang.org/x/net from 0.10.0 to 0.17.0 in /server (#13) #30

Bump golang.org/x/net from 0.10.0 to 0.17.0 in /server (#13)

Bump golang.org/x/net from 0.10.0 to 0.17.0 in /server (#13) #30

name: Push Artifacts
on:
push:
branches: [ "main" ]
workflow_dispatch:
jobs:
create-release:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
outputs:
tag_name: ${{ steps.release.outputs.tag_name }}
steps:
- uses: rymndhng/release-on-push-action@master
id: release
with:
bump_version_scheme: minor
push-release-assets-matrix:
name: Release Go Binary
needs: [create-release]
runs-on: ubuntu-latest
env:
GOARM: "7"
strategy:
matrix:
goos: [linux]
goarch: ["386", amd64, arm64, arm]
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "1.18"
ldflags: "-X 'main.commit=${{ github.sha }}' -X 'main.version=${{ needs.create-release.outputs.tag_name }}'"
md5sum: FALSE
sha256sum: TRUE
project_path: "./server"
binary_name: "jarvis"
release_tag: ${{ needs.create-release.outputs.tag_name }}
asset_name: jarvis-${{ matrix.goos }}-${{ matrix.goarch }}
push-docker-image:
runs-on: ubuntu-latest
needs: [create-release]
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build -f ./Dockerfile ./server --tag jarvis:latest --build-arg JARVIS_BUILD_COMMIT=${{ github.sha }} --build-arg JARVIS_BUILD_VERSION=${{ needs.create-release.outputs.tag_name }}
- name: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u USERNAME --password-stdin
- name: Push image
run: |
REMOTE_NAME="ghcr.io/${{ github.repository_owner }}/jarvis:latest"
docker tag jarvis:latest $REMOTE_NAME
docker push $REMOTE_NAME