Skip to content

chore(release): prepare for v0.2.1 #6

chore(release): prepare for v0.2.1

chore(release): prepare for v0.2.1 #6

Workflow file for this run

name: Publish crates and containers
on:
push:
tags: [ v* ]
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
jobs:
publish-crate:
name: Publish to crates.io
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run cargo publish
run: cargo publish
publish-pod:
name: Publish to hub.docker.com
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: docker/login-action@v2
name: Login to Docker Hub
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: docker/setup-buildx-action@v2
name: Set up Docker Buildx
- uses: docker/build-push-action@v3
name: Build and push
with:
context: .
file: ./Dockerfile
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/crates-io-proxy:latest
${{ secrets.DOCKERHUB_USERNAME }}/crates-io-proxy:${{ github.ref_name }}