2022-08-31 13:48:49 +05:30
|
|
|
name: Docker
|
|
|
|
|
|
|
|
on:
|
2023-02-03 23:25:33 +05:30
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- "master"
|
2022-08-31 13:48:49 +05:30
|
|
|
|
|
|
|
jobs:
|
2023-02-03 23:25:33 +05:30
|
|
|
build:
|
|
|
|
name: "Build"
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Set up QEMU
|
|
|
|
uses: docker/setup-qemu-action@v2
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v2
|
2023-01-25 22:41:11 +05:30
|
|
|
|
2023-02-03 23:25:33 +05:30
|
|
|
- name: "Build:checkout"
|
|
|
|
uses: actions/checkout@v3
|
2023-01-25 22:41:11 +05:30
|
|
|
|
2023-02-03 23:25:33 +05:30
|
|
|
- name: Log in to the Container registry
|
|
|
|
uses: docker/login-action@v2
|
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
|
|
|
username: ProjectSegfault
|
|
|
|
password: ${{ secrets.ACCESS_TOKEN }}
|
2023-01-25 22:41:11 +05:30
|
|
|
|
2023-02-03 23:25:33 +05:30
|
|
|
- name: "Build:dockerimage"
|
|
|
|
uses: docker/build-push-action@v3
|
|
|
|
with:
|
|
|
|
tags: ghcr.io/projectsegfault/website:latest
|
|
|
|
context: "."
|
|
|
|
push: true
|
|
|
|
no-cache: true
|