-
Notifications
You must be signed in to change notification settings - Fork 5
25 lines (25 loc) · 951 Bytes
/
ae.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
name: Artifact evaluation image build
on:
workflow_dispatch:
env:
IMAGE_NAME: ${{ github.repository }}
jobs:
build-ae-image:
runs-on: ubuntu-20.04
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log into registry ghcr.io
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin
- name: Build artifact evaluation image
run: |
cp docker/ae/Dockerfile .
docker build -t ghcr.io/${{ env.IMAGE_NAME }}/anvil-ae:latest .
docker tag ghcr.io/${{ env.IMAGE_NAME }}/anvil-ae:latest ghcr.io/${{ env.IMAGE_NAME }}/anvil-ae:${{ github.sha }}
- name: Push artifact evaluation image
run: |
docker push ghcr.io/${{ env.IMAGE_NAME }}/anvil-ae:latest
docker push ghcr.io/${{ env.IMAGE_NAME }}/anvil-ae:${{ github.sha }}