You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# ##### Adapted from https://docs.github.com/en/actions/publishing-packages/publishing-docker-images
8
+
9
+
# # Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
10
+
# env:
11
+
# REGISTRY: ghcr.io
12
+
# IMAGE_NAME: ${{ github.repository }}
13
+
14
+
# # There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
15
+
# jobs:
16
+
# build-and-push-image:
17
+
# runs-on: ubuntu-latest
18
+
# # Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
19
+
# permissions:
20
+
# contents: read
21
+
# packages: write
22
+
# steps:
23
+
# - name: Checkout repository
24
+
# uses: actions/checkout@v3
25
+
# # Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
26
+
# - name: Log in to the Container registry
27
+
# uses: docker/login-action@v2
28
+
# with:
29
+
# registry: ${{ env.REGISTRY }}
30
+
# username: ${{ github.actor }}
31
+
# password: ${{ secrets.GITHUB_TOKEN }}
32
+
33
+
# - name: Reclaim space
34
+
# run: |
35
+
# rm -rf /usr/share/dotnet
36
+
# rm -rf /opt/ghc
37
+
# rm -rf "/usr/local/share/boost"
38
+
# rm -rf /usr/local/cuda/cuda-*
39
+
40
+
# - name: ssh
41
+
# uses: appleboy/ssh-action@master
42
+
# with:
43
+
# host: ${{ secrets.HOST }}
44
+
# username: ${{ secrets.USERNAME }}
45
+
# password: ${{ secrets.PASSWORD }}
46
+
# port: ${{ secrets.PORT }}
47
+
48
+
# # This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages.
49
+
# # It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository.
50
+
# # It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
0 commit comments