Skip to content

add ability to control tags for injected containers (#22) #2

add ability to control tags for injected containers (#22)

add ability to control tags for injected containers (#22) #2

Workflow file for this run

name: tagged release and deploy
on:
push:
tags:
- '*'
jobs:
test:
uses: ./.github/workflows/test.yaml
release:
permissions:
id-token: write
contents: write
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Docker Login
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME}}
password: ${{ secrets.DOCKER_TOKEN}}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push
uses: docker/build-push-action@v3
with:
push: true
platforms: linux/amd64,linux/arm64
tags: |
hooksie1/cmsnr:latest
hooksie1/cmsnr:${{ github.ref_name }}