Skip to content

fix: migrate secrecy to new type #48

fix: migrate secrecy to new type

fix: migrate secrecy to new type #48

name: release-please
on:
push:
branches:
- master
permissions:
contents: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
release-type: rust
include-v-in-tag: false
# Docker Image release
- name: Checkout
uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
if: ${{ steps.release.outputs.release_created }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
if: ${{ steps.release.outputs.release_created }}
- name: Login to Docker Hub
uses: docker/login-action@v3
if: ${{ steps.release.outputs.release_created }}
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@0de3687b53cd804b63dd87819f7bda043569ce4a
if: ${{ steps.release.outputs.release_created }}
with:
images: timmi6790/netcup-offer-bot
tags: |
type=raw,value=${{ steps.release.outputs.tag_name }}
type=raw,value=latest
- uses: Swatinem/rust-cache@v2
if: ${{ steps.release.outputs.release_created }}
- name: Build and push
uses: docker/build-push-action@v6
if: ${{ steps.release.outputs.release_created }}
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
version=${{ steps.release.outputs.tag_name }}
release=${{ steps.release.outputs.tag_name }}