-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (36 loc) · 1.13 KB
/
github-actions-demo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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 }}"