Merge pull request #8 from rehosting/armhf #16
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 to Github Container Registry | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout code' | |
uses: actions/checkout@v4 | |
- name: 'Login to Github Container Registry' | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build | |
run: | | |
docker build -t ghcr.io/${{ github.repository }}:latest --target base . | |
docker build -t ghcr.io/${{ github.repository }}_rust:latest . | |
docker push ghcr.io/${{ github.repository }}:latest | |
docker push ghcr.io/${{ github.repository }}_rust:latest |