Skip to content

Commit

Permalink
Add weekly automated builds
Browse files Browse the repository at this point in the history
  • Loading branch information
sonroyaalmerol authored Feb 7, 2024
1 parent c4f39ad commit 1fd3cda
Showing 1 changed file with 83 additions and 0 deletions.
83 changes: 83 additions & 0 deletions .github/workflows/weekly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
---
name: Weekly
on: # yamllint disable-line rule:truthy
schedule:
- cron: '0 0 * * 0'

jobs:
# Builds the Dockerfile and pushes it to dockerhub
release:
name: Release - Docker image
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Docker - Login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Docker - Metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ github.repository }}
# generate Docker tags based on the following events/attributes
tags: |
type=raw,value=steam
flavor: latest=true

- name: Docker - Build / Push
id: docker_build
uses: docker/build-push-action@v5
with:
platforms: linux/arm64
target: bullseye
push: true
tags: ${{ steps.meta.outputs.tags }}

release-root:
name: Release - Docker image
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Docker - Login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Docker - Metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ github.repository }}
# generate Docker tags based on the following events/attributes
tags: |
type=raw,value=root
flavor: latest=false

- name: Docker - Build / Push
id: docker_build
uses: docker/build-push-action@v5
with:
platforms: linux/arm64
target: bullseye-root
push: true
tags: ${{ steps.meta.outputs.tags }}

0 comments on commit 1fd3cda

Please sign in to comment.