Publish-AMD64 #58
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-AMD64 | |
on: | |
schedule: | |
- cron: "0 4 * * *" | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Docker buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Publish | |
run: | | |
docker build -f ./gar.base.dockerfile -t github-actions-runner . | |
docker login -u coderookieerick -p ${{ secrets.ACTIONS_RUNNER_DOCKER_IMAGE_TOKEN }} | |
docker tag github-actions-runner coderookieerick/github-actions-runner:linux-amd64 | |
docker push coderookieerick/github-actions-runner:linux-amd64 | |
build_version: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
version: [dotnet, node] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Docker buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Publish | |
run: | | |
docker build -f ./gar.${{matrix.version}}.dockerfile -t github-actions-runner:${{matrix.version}} . | |
docker login -u coderookieerick -p ${{ secrets.ACTIONS_RUNNER_DOCKER_IMAGE_TOKEN }} | |
docker tag github-actions-runner:${{matrix.version}} coderookieerick/github-actions-runner:${{matrix.version}}-linux-amd64 | |
docker push coderookieerick/github-actions-runner:${{matrix.version}}-linux-amd64 |