Skip to content

YiqingQu is testing out GitHub Actions πŸš€ #46

YiqingQu is testing out GitHub Actions πŸš€

YiqingQu is testing out GitHub Actions πŸš€ #46

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 }}"