Pending changes exported from your codespace

This commit is contained in:
chezburg 2023-09-26 01:45:48 +00:00
parent 417f1ed281
commit 1da45d04ad
2 changed files with 18 additions and 18 deletions

View file

@ -1,18 +0,0 @@
name: Docker Image CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)

18
.github/workflows/publish.yml vendored Normal file
View file

@ -0,0 +1,18 @@
name: publish
on: [push]
jobs:
publish-hello-docker-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build the hello-docker Docker image
run: |
docker build . --tag ghcr.io/chezburg/free-games-claimer:latest
docker run ghcr.io/chezburg/free-games-claimer:latest
docker push ghcr.io/chezburg/free-games-claimer:latest