test - dont specify platform #3
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
# This action pre-builds the dev-base image and pushes it to the GitHub Container Registry (GHCR) | |
name: Publish outpost dev-base image to github container registry | |
on: [push] | |
# on: | |
# push: | |
# branches: [develop] | |
# paths: | |
# - ".docker/images/dev-base/**" | |
# schedule: | |
# # At 08:00 on day-of-month 1 (https://crontab.guru/#0_8_1_*_*) | |
# - cron: "0 8 1 * *" | |
jobs: | |
publish-dev-base: | |
runs-on: ubuntu-latest | |
# strategy: | |
# matrix: | |
# platforms: ["linux/amd64"] | |
steps: | |
- name: "Checkout GitHub Action" | |
uses: actions/checkout@main | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: "Login to GitHub Container Registry" | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{github.actor}} | |
password: ${{secrets.GITHUB_TOKEN}} | |
- name: Build and push dev-base docker image | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
tags: ghcr.io/wearefuturegov/outpost-dev-base | |
file: .docker/images/dev-base/Dockerfile | |
# platforms: ${{ matrix.platforms }} | |
push: true | |
outputs: type=image,name=target,annotation-index.org.opencontainers.image.description=Outpost dev base image | |
labels: org.opencontainers.image.source=https://github.com/wearefuturegov/outpost |