chore(deps): update proget.inedo.com/productimages/inedo/proget docke… #774
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: build | |
on: | |
push: | |
env: | |
OWNER: ${{ github.repository_owner }} | |
FILE: proget | |
IMAGE: ghcr.io/${{ github.repository_owner }}/proget | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.number || github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
packages: write | |
jobs: | |
linux: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
env: | |
# TAG: linux | |
TAG: latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Init | |
run: ./bin/init.sh | |
shell: bash | |
- name: docker-config | |
uses: containerbase/internal-tools@24c6f15bd531c658751f021e3093c2ec4a569a5d # v3.4.34 | |
with: | |
command: docker-config | |
- name: Build the Docker image | |
run: docker buildx bake --progress plain test | |
- name: Test run | |
run: docker compose --file docker-compose.test.yml run sut | |
working-directory: ./linux | |
env: | |
IMAGE: ${{ env.IMAGE }}:${{ env.TAG }} | |
- name: Log into registry | |
if: github.ref == 'refs/heads/main' | |
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin | |
- name: Publish the Docker image | |
if: github.ref == 'refs/heads/main' | |
run: docker buildx bake build |