v0.4.0 #76
Workflow file for this run
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: Publish Docker image | |
on: | |
release: | |
branches: main | |
jobs: | |
build-and-push-image: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Get short SHA | |
id: slug | |
run: echo "::set-output name=sha12::$(echo ${GITHUB_SHA} | cut -c1-12)" | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.MY_GITHUB_RESISTRY_TOKEN }} | |
- name: Build AVX container image and push to ghcr | |
uses: docker/build-push-action@v2 | |
with: | |
context: docker-images/avx | |
push: true | |
tags: ghcr.io/usda-ars-gbru/guidemaker-avx:sha-${{ steps.slug.outputs.sha12 }} | |
- name: Build NON-AVX container image and push to ghcr | |
uses: docker/build-push-action@v2 | |
with: | |
context: docker-images/nonavx | |
push: true | |
tags: ghcr.io/usda-ars-gbru/guidemaker-nonavx:sha-${{ steps.slug.outputs.sha12 }} | |
- name: Build WEBAPP container image and push to ghcr | |
uses: docker/build-push-action@v2 | |
with: | |
context: docker-images/webapp | |
push: true | |
tags: ghcr.io/usda-ars-gbru/guidemaker-webapp:sha-${{ steps.slug.outputs.sha12 }} |