Publish Docker #256
This file contains hidden or 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: Publish Docker | |
on: | |
push: | |
branches: | |
- master | |
schedule: | |
- cron: '0 2 * * 0' | |
jobs: | |
publish: | |
runs-on: ubuntu-22.04 | |
environment: Docker Deploy | |
env: | |
DOCKER_REPO: "rnestler/archlinux-rust" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build Docker image | |
run: ./build.sh 1.84.0 1.84.1 1.85.0 beta nightly stable | |
- name: Tag stable as latest | |
run: docker tag "$DOCKER_REPO":stable "$DOCKER_REPO":latest | |
- name: Login to Docker Hub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKER_USER }} | |
password: ${{ secrets.DOCKER_TOKEN }} | |
- name: Push all tags | |
run: ./push.sh 1.84.0 1.84.1 1.85.0 beta nightly stable latest |