image: Update base image to version 20231202R1 #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
name: testcontainer | |
on: | |
schedule: | |
# each sunday at 11:00 | |
- cron: "0 11 * * 0" | |
push: | |
branches: | |
- testcontainer | |
env: | |
GHCR_IMAGE: "ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:testcontainer" | |
jobs: | |
testcontainer: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Log in to GHCR | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push images | |
uses: docker/build-push-action@v5 | |
with: | |
context: image | |
outputs: type=image,name=${{ env.GHCR_IMAGE }},push=true |