fix:update link (#23) #40
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: Build Server | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- "main" | |
tags: | |
- "v*" | |
jobs: | |
update_dockerhub: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repo | |
uses: actions/checkout@v3 | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASS }} | |
- name: Download release check-chart | |
uses: dsaltares/fetch-gh-release-asset@master | |
with: | |
file: check-chart_0.0.4_linux_amd64.tar.gz | |
repo: beclab/check-chart | |
target: check-chart.tar.gz | |
version: tags/v0.0.4 | |
- name: get latest tag | |
uses: "WyriHaximus/github-action-get-previous-tag@v1" | |
id: get-latest-tag | |
with: | |
fallback: latest | |
- name: unpack check-chart | |
run: | | |
tar zxvf check-chart.tar.gz | |
pwd | |
ls | |
- name: Build and push Docker image | |
uses: docker/build-push-action@v3 | |
with: | |
context: . | |
push: true | |
tags: beclab/devbox-server:${{ steps.get-latest-tag.outputs.tag }} | |
file: Dockerfile.server |