Skip to content

rebuild release

rebuild release #1035

name: rebuild release
on:
schedule:
- cron: '0 10 * * *' # everyday at 10am
jobs:
docker:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: release-v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Log in to the GitHub Container registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker image
id: meta
uses: docker/metadata-action@v3
with:
images: |
xtruder/nix-devcontainer
ghcr.io/${{ github.repository }}
tags: |
type=raw,value=v1
type=raw,value=latest
- name: Build and push docker image to dockerhub
uses: docker/build-push-action@v2
with:
context: "./src"
file: ./src/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}