YiqingQu is testing out GitHub Actions π #28
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: Building AMD64 Images | |
run-name: ${{ github.actor }} is testing out GitHub Actions π | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: autobuild_env | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v3 | |
- | |
name: Login to Docker Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ${{ secrets.REGISTRY_LOGIN_SERVER }} | |
username: ${{ secrets.REGISTRY_USERNAME }} | |
password: ${{ secrets.REGISTRY_TOKEN }} | |
# username: ${{ secrets.DOCKERHUB_USERNAME }} | |
# password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- | |
name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- | |
name: Build and push | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
file: ./Dockerfile | |
platforms: linux/amd64 | |
push: true | |
tags: registry.anvil.rcac.purdue.edu/geoedf/geoedf-portal_web:${{ github.run_number }} | |
# todo | |
# tags: yiqingqu/geoedf-portal_web:latest | |
secrets: | | |
"github_token=${{ secrets.GITHUB_TOKEN }}" |