Package #45
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Package | |
on: | |
create: | |
tags: | |
- v*.*.* | |
jobs: | |
bake: | |
runs-on: blg-runner-set | |
steps: | |
- name: Ensure new enough git version is installed. | |
run: | | |
sudo apt update | |
sudo apt install -y git | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
token: ${{ secrets.CONTENT_REPO_GITHUB_TOKEN }} | |
- name: Set TAG environment variable | |
run: echo "TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | |
- name: Setup buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to DockerHub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and push | |
uses: docker/bake-action@v4 | |
with: | |
push: true | |