mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
fdd4425974
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.0.2 to 3.1.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](2541b1294d...93ea575cb5
)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
66 lines
2.0 KiB
YAML
66 lines
2.0 KiB
YAML
name: Build and Upload GCP guest-agent container
|
|
env:
|
|
REGISTRY: ghcr.io
|
|
on: [workflow_dispatch]
|
|
|
|
# Abort runs of *this* workflow, if a new commit with the same ref is pushed.
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build-gcp-guest-agent:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
strategy:
|
|
matrix:
|
|
version: ["20220713.00"]
|
|
include:
|
|
- version: "20220713.00"
|
|
latest: true
|
|
steps:
|
|
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
|
with:
|
|
repository: "GoogleCloudPlatform/guest-agent"
|
|
ref: refs/tags/${{ matrix.version }}
|
|
path: "guest-agent"
|
|
|
|
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
|
with:
|
|
path: "constellation"
|
|
|
|
- name: Docker meta
|
|
id: meta
|
|
uses: docker/metadata-action@69f6fc9d46f2f8bf0d5491e4aabe0bb8c6a4678a
|
|
with:
|
|
images: |
|
|
${{ env.REGISTRY }}/edgelesssys/gcp-guest-agent
|
|
flavor: |
|
|
latest=${{ matrix.latest || false }}
|
|
tags: |
|
|
type=raw,value=${{ matrix.version }}
|
|
|
|
- name: Log in to the Container registry
|
|
id: docker-login
|
|
uses: docker/login-action@49ed152c8eca782a232dede0303416e8f356c37b
|
|
with:
|
|
registry: ${{ env.REGISTRY }}
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Prepare hardcoded configuration file
|
|
run: |
|
|
cp "${GITHUB_WORKSPACE}/constellation/3rdparty/gcp-guest-agent/instance_configs.cfg" "${GITHUB_WORKSPACE}/guest-agent/"
|
|
|
|
- name: Build and push container image
|
|
id: build
|
|
uses: docker/build-push-action@c84f38281176d4c9cdb1626ffafcd6b3911b5d94
|
|
with:
|
|
context: ./guest-agent
|
|
file: ./constellation/3rdparty/gcp-guest-agent/Dockerfile
|
|
push: true
|
|
tags: ${{ steps.meta.outputs.tags }}
|
|
labels: ${{ steps.meta.outputs.labels }}
|