[misc] Remove use of deprecated set-output command (#1198) #72
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
# Deployments to DockerHub | |
name: Deploy DockerHub | |
on: | |
release: | |
types: published | |
push: | |
branches: [ master ] | |
jobs: | |
deploy-docker: | |
runs-on: ubuntu-latest | |
environment: DockerHub | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker 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 export to Docker | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
load: true | |
tags: repobee/repobee:test | |
- name: Get RepoBee version | |
id: get-repobee-version | |
shell: bash | |
run: | | |
VERSION=v$(docker run -t repobee/repobee:test repobee --version) | |
echo "version=$VERSION" >> $GITHUB_OUTPUT | |
- name: Build and push latest | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
push: true | |
tags: repobee/repobee:latest | |
- name: Build and push release | |
uses: docker/build-push-action@v5 | |
if: ${{ github.event_name == 'release' }} | |
with: | |
context: . | |
push: true | |
tags: repobee/repobee:${{ steps.get-repobee-version.outputs.version }} |