Skip to content

Merge pull request #127 from CPCTF/dependabot/go_modules/github.com/d… #5

Merge pull request #127 from CPCTF/dependabot/go_modules/github.com/d…

Merge pull request #127 from CPCTF/dependabot/go_modules/github.com/d… #5

Workflow file for this run

name: Release
on:
push:
tags:
- v*.*.*
jobs:
image:
name: Build App Image
runs-on: ubuntu-latest
env:
DOCKER_BUILDKIT: 1
steps:
- name: Set IMAGE_TAG env
run: echo "IMAGE_TAG=${GITHUB_REF:10}" >> $GITHUB_ENV
- uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Google Artifact Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
tags: |
ghcr.io/cpctf/system/ssh-separator:${{env.IMAGE_TAG}}
ghcr.io/cpctf/system/ssh-separator:latest